<?php
/**
 * oscshop2 B2C电子商务系统
 *
 * ==========================================================================
 * @link      http://www.oscshop.cn/
 * @copyright Copyright (c) 2015-2017 oscshop.cn. 
 * @license   http://www.oscshop.cn/license.html License
 * ==========================================================================
 *
 * @author    
 *
 */
namespace osc\admin\controller;
use osc\common\controller\AdminBase;
use think\Db;
class Appreciation extends HomeBase{
	
	protected function _initialize()
	{
		parent::_initialize();
		$this->assign('breadcrumb1','商品');
		$this->assign('breadcrumb2','商品分类');
	}
	
   function index()
   {


   }

   function appre_wd()
   {
   		if(request()->isPost()){
			$data=input('post.');
			
			$data['token']  = input('post.__token__/s', null);
			
			$r=osc_service('common','Member')->wd($data);
			if(isset($r['error'])){
				return $r;
			}

			return array('success'=>'申请回购成功','url'=>'/mobile');
		}

   }


   function goldstone_tf()
   {
   		if(request()->isPost()){
			$data=input('post.');
			
			$data['token']  = input('post.__token__/s', null);
			
			$r=osc_service('common','Member')->wd($data);
			if(isset($r['error'])){
				return $r;
			}

			return array('success'=>'巨能果购买成功','url'=>'/mobile');
		}

   }

   function predeposit_tf()
   {
		if(request()->isPost()){
			$data=input('post.');
			
			$data['token']  = input('post.__token__/s', null);
			
			$r=osc_service('common','Member')->wd($data);
			if(isset($r['error'])){
				return $r;
			}

			return array('success'=>'余额购买成功','url'=>'/mobile');
		}

   }

}
